\hypertarget{classView}{\section{View类 参考}
\label{classView}\index{View@{View}}
}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classView_a3998a861648196dca58257ca77e85d8d}{set\-\_\-view\-\_\-dir} (\$template)
\item 
\hyperlink{classView_a0d5b19269e948807f93528c9ff614bbb}{set\-\_\-compile\-\_\-dir} (\$compile)
\item 
\hyperlink{classView_acd056bd0994f948766b554f2272d079b}{set\-Output} (\$data)
\item 
\hyperlink{classView_a9dcaad5a66cebba2b2c43226dccc21ef}{assign} (\$name, \$value='')
\item 
\hyperlink{classView_ad2577f243e3e14b58427b19bc988ffce}{display} (\$template\-\_\-file\-\_\-name=null)
\item 
\hyperlink{classView_ace350028442db330781d32e7d7808b8b}{load\-View} (\$template\-\_\-file\-\_\-name=null)
\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classView_a4833469062d3f9086f204d4be985e9bc}{{\bfseries \$template} = ''}\label{classView_a4833469062d3f9086f204d4be985e9bc}

\item 
\hypertarget{classView_ae5d668a78d653c92e4496c4b14268f35}{{\bfseries \$compile} = ''}\label{classView_ae5d668a78d653c92e4496c4b14268f35}

\end{DoxyCompactItemize}


\subsection{详细描述}
php 模板引擎 \begin{DoxyAuthor}{作者}
七觞酒  \href{mailto:739800600@qq.com}{\tt 739800600@qq.\-com} 
\end{DoxyAuthor}
\begin{DoxyDate}{日期}
2013-\/1-\/19 
\end{DoxyDate}


\subsection{成员函数说明}
\hypertarget{classView_a9dcaad5a66cebba2b2c43226dccc21ef}{\index{View@{View}!assign@{assign}}
\index{assign@{assign}!View@{View}}
\subsubsection[{assign}]{\setlength{\rightskip}{0pt plus 5cm}View\-::assign (
\begin{DoxyParamCaption}
\item[{}]{\$name, }
\item[{}]{\$value = {\ttfamily ''}}
\end{DoxyParamCaption}
)}}\label{classView_a9dcaad5a66cebba2b2c43226dccc21ef}
分配变量 单个变量分配 
\begin{DoxyParams}[1]{参数}
string & {\em \$name} & 变量名 \\
\hline
\textbackslash{}mid | string & {\em \$value} & 变量值 \\
\hline
\end{DoxyParams}
\hypertarget{classView_ad2577f243e3e14b58427b19bc988ffce}{\index{View@{View}!display@{display}}
\index{display@{display}!View@{View}}
\subsubsection[{display}]{\setlength{\rightskip}{0pt plus 5cm}View\-::display (
\begin{DoxyParamCaption}
\item[{}]{\$template\-\_\-file\-\_\-name = {\ttfamily null}}
\end{DoxyParamCaption}
)}}\label{classView_ad2577f243e3e14b58427b19bc988ffce}
页面显示 
\begin{DoxyParams}[1]{参数}
string & {\em \$template\-\_\-file\-\_\-name} & 模板文件名(不包括扩展名) \\
\hline
\end{DoxyParams}
\hypertarget{classView_ace350028442db330781d32e7d7808b8b}{\index{View@{View}!load\-View@{load\-View}}
\index{load\-View@{load\-View}!View@{View}}
\subsubsection[{load\-View}]{\setlength{\rightskip}{0pt plus 5cm}View\-::load\-View (
\begin{DoxyParamCaption}
\item[{}]{\$template\-\_\-file\-\_\-name = {\ttfamily null}}
\end{DoxyParamCaption}
)}}\label{classView_ace350028442db330781d32e7d7808b8b}
载入 模板缓存文件 \hypertarget{classView_a0d5b19269e948807f93528c9ff614bbb}{\index{View@{View}!set\-\_\-compile\-\_\-dir@{set\-\_\-compile\-\_\-dir}}
\index{set\-\_\-compile\-\_\-dir@{set\-\_\-compile\-\_\-dir}!View@{View}}
\subsubsection[{set\-\_\-compile\-\_\-dir}]{\setlength{\rightskip}{0pt plus 5cm}View\-::set\-\_\-compile\-\_\-dir (
\begin{DoxyParamCaption}
\item[{}]{\$compile}
\end{DoxyParamCaption}
)}}\label{classView_a0d5b19269e948807f93528c9ff614bbb}
设置编译缓存路径 \hypertarget{classView_a3998a861648196dca58257ca77e85d8d}{\index{View@{View}!set\-\_\-view\-\_\-dir@{set\-\_\-view\-\_\-dir}}
\index{set\-\_\-view\-\_\-dir@{set\-\_\-view\-\_\-dir}!View@{View}}
\subsubsection[{set\-\_\-view\-\_\-dir}]{\setlength{\rightskip}{0pt plus 5cm}View\-::set\-\_\-view\-\_\-dir (
\begin{DoxyParamCaption}
\item[{}]{\$template}
\end{DoxyParamCaption}
)}}\label{classView_a3998a861648196dca58257ca77e85d8d}
设置模板路径 \hypertarget{classView_acd056bd0994f948766b554f2272d079b}{\index{View@{View}!set\-Output@{set\-Output}}
\index{set\-Output@{set\-Output}!View@{View}}
\subsubsection[{set\-Output}]{\setlength{\rightskip}{0pt plus 5cm}View\-::set\-Output (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)}}\label{classView_acd056bd0994f948766b554f2272d079b}
分配变量 变量批量分配 
\begin{DoxyParams}[1]{参数}
array & {\em \$data} & 变量名 \\
\hline
\end{DoxyParams}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/View.\-class.\-php\end{DoxyCompactItemize}
